package com.whfc.base.service;


import com.whfc.common.exception.BizException;

/**
 * @Description: 短信服务
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/7/27 16:20
 */
public interface SmsService {

    /**
     * 发送短信验证码
     *
     * @param phone 手机号
     * @throws BizException
     */
    void sendSmsCode(String phone) throws BizException;

    /**
     * 验证手机验证码
     *
     * @param phone
     * @param code
     * @throws BizException
     */
    void checkSmsCode(String phone, String code) throws BizException;
}
